package dian.qing.li.demo.security.controller;

import dian.qing.li.demo.security.commons.RestResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liqingdian
 **/
@RestController
@RequestMapping(name = "用户管理", value = "/v1")
public class HelloController {

    @GetMapping(value = "/new", name = "新建")
    public RestResult insert() {
        return RestResult.succeed("new", null);
    }

    @GetMapping(value = "/info", name = "详情")
    public RestResult info() {
        return RestResult.succeed("info", null);
    }

    @GetMapping(value = "/delete", name = "删除")
    public RestResult delete() {
        return RestResult.succeed("delete", null);
    }

    @GetMapping(value = "/update", name = "编辑")
    public RestResult update() {
        return RestResult.succeed("update", null);
    }
}
